package algo.BackTrackSearch;


import algo.Common.Data;


public class SolutionTT {

	/**
	 * @param args
	 */
	
	int _minSlot = 1;
	int _maxSlot = 6;
	int _minDay = 2;
	int _maxDay = 6;
	
	VarIntTT[] _slot;// _slot[i] is the slot assigned to the course i, domain = 1..12
	VarIntTT[] _day;// _day[i] is the day assigned to the course i, domain = 1..5

	public VarIntTT getSlot(int i){ return _slot[i];}
	public VarIntTT getDay(int i){ return _day[i];}
	
	public VarIntTT[] getSlot(){ return _slot;}
	public VarIntTT[] getDay(){ return _day;}
	
	public void init(Data D){
		int sz = D.getCourses().size();
		_slot = new VarIntTT[sz];
		_day = new VarIntTT[sz];
		for(int i = 0; i < sz; i++){
			_slot[i] = new VarIntTT(_minSlot,_maxSlot);
			_day[i] = new VarIntTT(_minDay,_maxDay);
		}
	}
	
	public SolutionTT(int minSlot, int maxSlot, int minDay, int maxDay){
		_minSlot = minSlot;
		_maxSlot = maxSlot;
		_minDay = minDay;
		_maxDay = maxDay;
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
	}

}
